package com.cloudeoffice.server.service;

import com.cloudeoffice.server.pojo.Department;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cloudeoffice.server.vo.RespBean;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liujingnu
 * @since 2022-03-15
 */
public interface IDepartmentService extends IService<Department> {
    //获取所有子部门
    List<Department> getAllDepartments();
    //添加部门
    RespBean addDep(Department dep);
    //删除部门
    RespBean deleteDep(Integer id);


}
